package org.noote.LineDetection;

import org.noote.libs.camera.CameraInterface;
import org.noote.libs.graphicbuffer.GraphicBuffer;

import android.content.Context;

public class CameraPreview extends org.noote.libs.camera.preview.CameraPreview {

	public CameraPreview(Context context, CameraInterface camera) {
		super(context, camera);
	}

	public void copy_into(LineDetection detect)
	{
		if(getCamera() != null)
		{
			GraphicBuffer buffer = getCamera().getBuffer();
			
			detect.copy_from(buffer.getBuffer(), buffer.getWidth(), buffer.getHeight());
		}
	}
}
